package com.apes.framework.plugin.esb.parser.element;


import com.apes.framework.plugin.esb.processor.router.FilterProcessor;
import org.springframework.stereotype.Component;


/**
 * 功能：if元素解析器
 *
 * @author xul
 * @create 2018-04-16 14:25
 */
@Component
public class IfElementParser extends AbstractNestedProcessorParser {
    /**
     * 可解析的元素列表
     **/
    private final String[] elementNames = {"if"};

    /**
     * 功能：可解析的元素列表
     */
    @Override
    public String[] getNames() {
        return elementNames;
    }

    @Override
    <T extends Class> T getChainProcessorClass() {
        return (T) FilterProcessor.class;
    }
}
